<?php
if (eregi("errors.inc.php",$_SERVER['SCRIPT_NAME'])) {
    Header("Location: ../index.php");
    die();
}

define("DB_ERROR_CONNECT_FAILED","connect failed");
define("DB_ERROR_NOSUCHDB","no such database");
define("DB_ERROR_NOSUCHTABLE","no such table");
define("DB_ERROR_ACCESS_VIOLATION","insufficient permissions");
define("DB_ERROR_NODBSELECTED","no database selected");
define("DB_ERROR","unknown error");
define("DB_OK","no error");
?>